home *** CD-ROM | disk | FTP | other *** search
/ Aminet 48 / Aminet 48 (2002)(GTI - Schatztruhe)[!][Apr 2002].iso / Aminet / text / edit / vim60rt.lha / Vim / vim60 / syntax / man.vim < prev    next >
Encoding:
Text File  |  2001-04-29  |  1.4 KB  |  53 lines

  1. " Vim syntax file
  2. " Language:    Man page
  3. " Maintainer:    Nam SungHyun <namsh@kldp.org>
  4. " Previous Maintainer:    Gautam H. Mudunuri <gmudunur@informatica.com>
  5. " Last Change:    2001 Apr 26
  6. " Version Info:
  7.  
  8. " For version 5.x: Clear all syntax items
  9. " For version 6.x: Quit when a syntax file was already loaded
  10. if version < 600
  11.   syntax clear
  12. elseif exists("b:current_syntax")
  13.   finish
  14. endif
  15.  
  16. " Get the CTRL-H syntax to handle backspaced text
  17. if version >= 600
  18.   runtime! syntax/ctrlh.vim
  19. else
  20.   source <sfile>:p:h/ctrlh.vim
  21. endif
  22.  
  23. syn case ignore
  24. syn match  manReference       "\f\+([1-9][a-z]\=)"
  25. syn match  manTitle           "^\f\+([0-9]\+[a-z]\=).*"
  26. syn match  manSectionHeading  "^[a-z][a-z ]*[a-z]$"
  27. syn match  manOptionDesc      "^\s*[+-][a-z0-9]\S*"
  28. " syn match  manHistory         "^[a-z].*last change.*$"
  29.  
  30. " Define the default highlighting.
  31. " For version 5.7 and earlier: only when not done already
  32. " For version 5.8 and later: only when an item doesn't have highlighting yet
  33. if version >= 508 || !exists("did_man_syn_inits")
  34.   if version < 508
  35.     let did_man_syn_inits = 1
  36.     command -nargs=+ HiLink hi link <args>
  37.   else
  38.     command -nargs=+ HiLink hi def link <args>
  39.   endif
  40.  
  41.   HiLink manTitle           Title
  42.   HiLink manSectionHeading  Statement
  43.   HiLink manOptionDesc      Constant
  44.   " HiLink manHistory       Comment
  45.   HiLink manReference       PreProc
  46.  
  47.   delcommand HiLink
  48. endif
  49.  
  50. let b:current_syntax = "man"
  51.  
  52. " vim:ts=8 sts=2 sw=2:
  53.